package com.devilvan.betrice.houseprice.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.devilvan.betrice.common.BasePo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.hibernate.annotations.DynamicInsert;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.Table;
import java.io.Serial;
import java.io.Serializable;

/**
 * @author Evad.Wu
 * @Description 房客持久层对象
 * @date 2022-07-12
 */
@Setter
@Getter
@ToString
@NoArgsConstructor
@Accessors(chain = true)
@TableName(value = "HOUSE_PRICE")

@Entity
@Table(name = "HOUSE_PRICE")
@DynamicInsert
@EntityListeners(AuditingEntityListener.class)
@Schema(description = "房客持久层对象")
public class HousePricePo extends BasePo implements Serializable {
    @Serial
    private static final long serialVersionUID = -6945961272686151001L;

    @Schema(description = "系统ID")
    @TableField(value = "SYS_ID")
    @Column(name = "SYS_ID")
    private String sysId;
    @Schema(description = "地产商ID")
    @TableField(value = "GROUP_ID")
    @Column(name = "GROUP_ID")
    private String groupId;
    @Schema(description = "城市ID")
    @TableField(value = "CITY_ID")
    @Column(name = "CITY_ID")
    private String cityId;
    @Schema(description = "城市名字")
    @TableField(value = "CITY_NAME")
    @Column(name = "CITY_NAME")
    private String cityName;
    @Schema(description = "建筑面积（最小）")
    @TableField(value = "MIN_FRAME_AREA")
    @Column(name = "MIN_FRAME_AREA")
    private String minFrameArea;
    @Schema(description = "建筑面积（最大）")
    @TableField(value = "MAX_FRAME_AREA")
    @Column(name = "MAX_FRAME_AREA")
    private String maxFrameArea;
    @Schema(description = "区域ID")
    @TableField(value = "DISTRICT_ID")
    @Column(name = "DISTRICT_ID")
    private String districtId;
    @Schema(description = "区域名字")
    @TableField(value = "DISTRICT_NAME")
    @Column(name = "DISTRICT_NAME")
    private String districtName;
    @Schema(description = "商业圈ID")
    @TableField(value = "BIZCIRCLE_ID")
    @Column(name = "BIZCIRCLE_ID")
    private String bizcircleId;
    @Schema(description = "商业圈名字")
    @TableField(value = "BIZCIRCLE_NAME")
    @Column(name = "BIZCIRCLE_NAME")
    private String bizcircleName;
    @Schema(description = "装修")
    @TableField(value = "DECORATION")
    @Column(name = "DECORATION")
    private String decoration;
    @Schema(description = "户型描述")
    @TableField(value = "FRAME_ROOMS_DESC")
    @Column(name = "FRAME_ROOMS_DESC")
    private String frameRoomsDesc;
    @Schema(description = "标题")
    @TableField(value = "TITLE")
    @Column(name = "TITLE")
    private String title;
    @Schema(description = "楼盘名")
    @TableField(value = "RESBLOCK_NAME")
    @Column(name = "RESBLOCK_NAME")
    private String resblockName;
    @Schema(description = "楼盘别名")
    @TableField(value = "RESBLOCK_ALIAS")
    @Column(name = "RESBLOCK_ALIAS")
    private String resblockAlias;
    @Schema(description = "地址")
    @TableField(value = "ADDRESS")
    @Column(name = "ADDRESS")
    private String address;
    @Schema(description = "售楼部地址")
    @TableField(value = "STORE_ADDR")
    @Column(name = "STORE_ADDR")
    private String storeAddr;
    @Schema(description = "平均单价")
    @TableField(value = "AVG_UNIT_PRICE")
    @Column(name = "AVG_UNIT_PRICE")
    private String avgUnitPrice;
    @Schema(description = "均价")
    @TableField(value = "AVERAGE_PRICE")
    @Column(name = "AVERAGE_PRICE")
    private String averagePrice;
    @Schema(description = "地址备注")
    @TableField(value = "ADDRESS_REMARK")
    @Column(name = "ADDRESS_REMARK")
    private String addressRemark;
    @Schema(description = "房屋类型")
    @TableField(value = "HOUSE_TYPE")
    @Column(name = "HOUSE_TYPE")
    private String houseType;
    @Schema(description = "房屋类型值")
    @TableField(value = "HOUSE_TYPE_VALUE")
    @Column(name = "HOUSE_TYPE_VALUE")
    private String houseTypeValue;
    @Schema(description = "销售状态")
    @TableField(value = "SALE_STATUS")
    @Column(name = "SALE_STATUS")
    private String saleStatus;
    @Schema(description = "是否已评估")
    @TableField(value = "HAS_EVALUATE")
    @Column(name = "HAS_EVALUATE")
    private String hasEvaluate;
    @Schema(description = "是否支持VR看房")
    @TableField(value = "HAS_VR_HOUSE")
    @Column(name = "HAS_VR_HOUSE")
    private String hasVrHouse;
    @Schema(description = "开盘日期")
    @TableField(value = "OPEN_DATE")
    @Column(name = "OPEN_DATE")
    private String openDate;
    @Schema(description = "面价")
    @TableField(value = "SHOW_PRICE")
    @Column(name = "SHOW_PRICE")
    private String showPrice;
    @Schema(description = "面价单位")
    @TableField(value = "SHOW_PRICE_UNIT")
    @Column(name = "SHOW_PRICE_UNIT")
    private String showPriceUnit;
    @Schema(description = "明细URL")
    @TableField(value = "URL")
    @Column(name = "URL")
    private String url;
}
